import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [
    {
        path: "/",
        redirect: "/home",
    },{
        path:'/home',
        component: () => import("@/views/projectB/Home"),
        meta:{title:'首页',type:'projectB'}
}]
const router = new VueRouter({
    // mode: 'history',  //去掉url中的#
    routes,
    scrollBehavior (to, from, savedPosition) {   return { x: 0, y: 0 } },
});

export default router;